package com.ilink.groundservice.mapper.innovationPlaza;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ilink.groundservice.entity.PO.innovationPlaza.ProjectConnectImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProjectConnectImageMapper extends BaseMapper<ProjectConnectImage> {
    // 根据 projectId 获取所有关联的 imageId
    @Select("SELECT image_id FROM project_connect_image WHERE project_id = #{projectId}")
    List<Long> getImageIdsByProjectId(Long projectId);
}
